package com.freedom.admin.infrastructure.persistence.assembler;

import com.freedom.admin.infrastructure.persistence.pojo.bo.PermissionBO;
import com.freedom.admin.infrastructure.persistence.pojo.po.SysPermissionPO;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper(componentModel = "spring")
public interface PermissionAssembler {
    List<PermissionBO> toBO(List<SysPermissionPO> permissionPOList);
    PermissionBO toBO(SysPermissionPO sysPermissionPO);

    SysPermissionPO toPO(PermissionBO permissionBO);
}
